//
//  DHStyleCollectionViewCell.m
//  Dresshere
//
//  Created by braspring on 2017/12/19.
//  Copyright © 2017年 张朋. All rights reserved.
//

#import "DHStyleCollectionViewCell.h"
#import "DHLoginStyleModel.h"

@interface DHStyleCollectionViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconImgView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *disLabel;
@property (weak, nonatomic) IBOutlet UIImageView *tickImgVie;

@end

@implementation DHStyleCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)uploadCellWith:(DHLoginStyleModel *)styleModel{
    [self.iconImgView dh_setImageURLString:styleModel.icon];
    self.nameLabel.text = styleModel.name;
    self.disLabel.text = styleModel.style_description;
    if (styleModel.isSelected) {
        [self.tickImgVie setImage:[UIImage imageNamed:@"login_style_selected"]];
    }else{
        [self.tickImgVie setImage:[UIImage imageNamed:@""]];
    }
}

@end
